<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Welcome extends MY_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see https://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
		$this->load->model('Statistics_model');
		$statistics = $this->Statistics_model->school_sttistics($this->user_data['school_id']);
		$this->smarty->assign("statistics", $statistics);
		//统计视频课数量
		//
		//统计直播课梳理
		//统计面授课数量
		//统计视频数量
		//统计会员数量
		//统计VIP数量
		//统计学员数量
		//统计班级数量
		//
		
		$this->smarty->assign("menu", "home");
		$this->smarty->assign("is_manage", $this->is_manage);
		// $this->smarty->assign("user_data", $this->user_data);
		$this->smarty->display("index.html");
	}
}
